package com.wocao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wocao.entity.ZyCommunityInteraction;
import com.wocao.mapper.CommentsAppMapper;
import com.wocao.service.CommentsAppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentsAppServiceImpl extends ServiceImpl<CommentsAppMapper, ZyCommunityInteraction>
        implements CommentsAppService {

    @Autowired
    private CommentsAppMapper commentsAppMapper;

    @Override
    public List<ZyCommunityInteraction> selectAll() {
        return commentsAppMapper.selectAll();
    }

    @Override
    public String getOwnerNickName(String commentId) {
        return commentsAppMapper.getOwnerNickName(commentId);
    }
}
